﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace LD24.Helpers
{
    public class ImageHelper
    {
        private static Dictionary<String, Texture2D> _images = new Dictionary<string,Texture2D>();
        
        public static Texture2D getImage(String image)
        {
            if (!ImageHelper._images.ContainsKey(image))
                _images.Add(image, LDGame.CONTENT.Load<Texture2D>("Textures/"+image));
            return _images[image];
        }
    }
}
